package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;


@Embeddable
public class NewsTjMenberPK  implements Serializable{
	@Basic(optional = false)
	@Column(name = "cyear")
	private Integer cyear;  
	@Basic(optional = false)
	@Column(name = "cmonth")
	private Integer cmonth; 
	@Basic(optional = false)
	@Column(name = "cday")
	private Integer cday; 
	@Basic(optional = false)
	@Column(name = "chour")
	private Integer chour; 
	@Basic(optional = false)
	@Column(name = "ciparea")
	private String ciparea; 
	@Basic(optional = false)
	@Column(name = "cipcarrer")
	private String cipcarrer; 
	
	public NewsTjMenberPK(){
	}
    public NewsTjMenberPK(Integer cyear,Integer cmonth,Integer cday,Integer chour,String ciparea,String cipcarrer){
		this.cyear=cyear;
		this.cmonth=cmonth;
		this.cday=cday;
		this.chour=chour;
		this.ciparea=ciparea;
		this.cipcarrer=cipcarrer;
	}
	
	public Integer getCyear() {
		return cyear;
	}
	public void setCyear(Integer cyear) {
		this.cyear = cyear;
	}
	public Integer getCmonth() {
		return cmonth;
	}
	public void setCmonth(Integer cmonth) {
		this.cmonth = cmonth;
	}
	public Integer getCday() {
		return cday;
	}
	public void setCday(Integer cday) {
		this.cday = cday;
	}
	public Integer getChour() {
		return chour;
	}
	public void setChour(Integer chour) {
		this.chour = chour;
	}
	public String getCiparea() {
		return ciparea;
	}
	public void setCiparea(String ciparea) {
		this.ciparea = ciparea;
	}
	public String getCipcarrer() {
		return cipcarrer;
	}
	public void setCipcarrer(String cipcarrer) {
		this.cipcarrer = cipcarrer;
	}
	@Override
	public int hashCode() {
	        int hash = 0;
	        hash += (cyear != null ? cyear.hashCode() : 0);
	        hash += (cmonth != null ? cmonth.hashCode() : 0);
	        hash += (cday != null ? cday.hashCode() : 0);
	        hash += (chour != null ? chour.hashCode() : 0);
	        hash += (ciparea != null ? ciparea.hashCode() : 0);
	        hash += (cipcarrer != null ? cipcarrer.hashCode() : 0);
	        return hash;
	}

    @Override
	public boolean equals(Object object) {
	    if (!(object instanceof NewsTjMenberPK)) {
	          return false;
	     }
	    NewsTjMenberPK other = (NewsTjMenberPK) object;
	     if ((this.cyear == null && other.cyear != null) || (this.cyear != null && !this.cyear.equals(other.cyear))) {
	         return false;
	     }
	     if ((this.cmonth == null && other.cmonth != null) || (this.cmonth != null && !this.cmonth.equals(other.cmonth))) {
	         return false;
	     }
	     if ((this.cday == null && other.cday != null) || (this.cday != null && !this.cday.equals(other.cday))) {
	         return false;
	     }
	     if ((this.chour == null && other.chour != null) || (this.chour != null && !this.chour.equals(other.chour))) {
	         return false;
	     }
	     if ((this.ciparea == null && other.ciparea != null) || (this.ciparea != null && !this.ciparea.equals(other.ciparea))) {
	         return false;
	     }
	     if ((this.cipcarrer == null && other.cipcarrer != null) || (this.cipcarrer != null && !this.cipcarrer.equals(other.cipcarrer))) {
	         return false;
	     }
	     return true;
	}
	    
	@Override
    public String toString() {
        return "com.dp.vo.NewsTjMenberPK[cyear=" + cyear + ",cmonth="+cmonth+",cday="+cday+",chour="+chour+",ciparea="+ciparea+",cipcarrer="+cipcarrer+"]";
    }
	
	
}
